<template>
	<mescroll-uni :ref="'mescrollRef'+tabIndex" @init="mescrollInit"   @down="downCallback" @up="upCallback">
		<view class="u-padding-left-32 u-padding-right-32 swiper-box-padding" v-if="dataList.length">
			<view  v-for="(item,index) in dataList" :key="index" class="u-margin-top-20" @click="goPathDetail(item)">
				<list-item :item="item" :isShare="false" showHotelAddress>
				</list-item>
			</view>
		</view>
	</mescroll-uni>
</template>

<script>
	import upCallback from '@/mixins/upCallbackMixin.js'
	export default {
		mixins: [upCallback], // 注意此处还需使用MescrollMoreItemMixin (必须写在MescrollMixin后面)
		props:{
			tab:{
				type:Object,
				default:()=>({})
			},
			tabIndex:{
				type:Number,
				default:0
			},
			inputName:{
				type:String,
				default:''
			},
			categoryIds:{
				type:Array,
				default:()=>([])
			}
		},
		data() {
			return {
				apiType:"exhibitProduct",
				apiModule:'shopApi',
				name:'thirdQuery',
				form:{}
			}
		},
		created() {
			const {type} = this.tab;
			this.form = {type,status:type,types:'script'}
		},
		methods: {
			selectCallback(categoryIds,peopleDesc){
				this.$set(this.form,'categoryIds',categoryIds);
				this.$set(this.form,'peopleDesc',peopleDesc);
				this.downCallback()
			},
			goPathDetail(item){
				this.$u.route({
					url:'/pagesA/itemDetail/itemDetail',
					params:{
						id:item.id,
						productId:item.productId,
						type:'detailTestReply' //参展剧本评价
					}
				})
			},
		}
	}
</script>

<style>
</style>
